/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import TabBariOS from './src/main/TabBariOS';

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
    Navigator
} from 'react-native';


class WineClien_RN extends Component {
  render() {
    return (
        <Navigator
            ref='Navigator'
            initialRoute={{ name: 'tabBariOS', component: TabBariOS }}
            configureScene={(route) => {
                return Navigator.SceneConfigs.PushFromRight;
              }}
            renderScene={(route, navigator) => {
                let Component = route.component;
                return <Component {...route.params} navigator={navigator} />
              }}
        />
    );
  }

  componentDidMount() {
    var navigator = this.refs['Navigator'];
    global.nav = navigator;
  }
  
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF'
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5
  }
});

AppRegistry.registerComponent('WineClien_RN', () => WineClien_RN);
